<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>奖学金</title>
    <script>
        var ranking = prompt("请输入获得名次","");
        if(ranking==1){
            document.write("获得奖学金1000元");
        }else if(ranking==2){
            document.write("获得奖学金800元");
        }else if(ranking==3){
            document.write("获得奖学金300元");
        }else{
            document.write("很遗憾，你没有得到奖励！");
        }
    </script>
</head>
<body>
    
</body>
</html>